package com.thd.framework.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * com.thd.springboot.framework.db.entity.BaseEntity
 *
 * @author: wanglei62
 * @DATE: 2020/1/21 17:51
 **/
@JsonInclude(JsonInclude.Include.ALWAYS)
public class BasicIdEntity<T> extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_UUID)
    private T id;

    public T getId() {
        return id;
    }

    public void setId(T id) {
        this.id = id;
    }
}
